package commands.controller;

import dataTypes.File;

/**
 * Request so start downloading file
 * @author Marcin Kamionowski
 */
public class CC_GUIStartDownloadFile extends ControllerCommand {

    private final File file;

    /**
     * Constructor
     * @param file Descriptor of file
     */
    public CC_GUIStartDownloadFile(File file) {
        super(ControllerCommandType.GUI_START_DOWNLOAD_FILE);
        this.file = file;
    }

    /**
     * Getter
     * @return Descriptor of file
     */
    public File getFile() {
        return file;
    }
}
